import type { Metadata } from "next";
import { ConfigProvider } from "antd";
import { AntdRegistry } from "@ant-design/nextjs-registry";
import { theme } from "@/lib/antd/theme";
import zh_CN from "antd/es/locale/zh_CN";
import "./globals.css";

export const metadata: Metadata = {
  title: "平安电气",
  description: "平安电气股份有限公司后台管理系统",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
  parel: React.ReactNode;
}>) {
  return (
    <html lang="zh-CN">
      <body className={`antialiased`}>
        <ConfigProvider theme={theme} locale={zh_CN}>
          <AntdRegistry>{children}</AntdRegistry>
        </ConfigProvider>
      </body>
    </html>
  );
}
